liblockdep: Fix 'set but not used' warnings
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 19:13:24 +0000 (20:13 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 27 Feb 2017 15:58:07 +0000 (15:58 +0000)
commit08fd2ba7cf47f80f56a21ff5a4d6d90dd437a07d
tree4070f15abaaa2518c740b551062b61409dbbd584
parent8c39db5e98f6b8fed5f98e9998e1550aa6fa6613
liblockdep: Fix 'set but not used' warnings

liblockdep defines trivial macros for working with interrupt flags, as
interrupts are never disabled in userland.  This results in warnings
from gcc when -Wunused-but-set-variable is enabled, and it is enabled
by -Wall.  Fix this by evaluating the flags parameter and casting it to
void.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-set-but-not-used-warnings.patch
tools/lib/lockdep/uinclude/linux/irqflags.h